package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

/**
 * @Author liub
 * @Date 2019/11/26 10:46
 * @Version 1.0
 */
public class OrderBom extends BasePojo {
    /**
     * 任务单流程关联物料ID
     */
    private Integer orderBomId;
    /**
     * 任务单流程ID
     */
    private Integer orderFlowId;
    /**
     * 物料ID
     */
    private Integer matId;
    /**
     * 扣减方式ID
     */
    private Integer reduceTypeId;
    /**
     * 扣减数量
     */
    private Integer reduceNum;
    /**
     * 是否为关键物料
     */
    private Integer keyMaterial;
    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 说明
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    /*                                       新增字段                           */
    /**
     * 物料编号
     */
    private String matCode;
    /**
     * 物料名称
     */
    private String matName;
    /**
     * 扣减方式名称
     */
    private String reduceTypeName;
    /**
     * 物料类型ID
     */
    private Integer matTypeId;
    /**
     * 物料类型编号
     */
    private String matTypeCode;
    /**
     * 物料类型名称
     */
    private String matTypeName;
    /**
     * 条码规则ID
     */
    private Integer ruleId;
    /**
     * 条码规则编号
     */
    private String ruleCode;
    /**
     * 条码规则名称
     */
    private String ruleName;
    /**
     * 物料来源名称
     */
    private String matSourceName;
    /**
     * 计量单位名称
     */
    private String matUnitName;
    /**
     * 规格型号
     */
    private String matModel;

    public Integer getOrderBomId() {
        return orderBomId;
    }

    public void setOrderBomId(Integer orderBomId) {
        this.orderBomId = orderBomId;
    }

    public Integer getOrderFlowId() {
        return orderFlowId;
    }

    public void setOrderFlowId(Integer orderFlowId) {
        this.orderFlowId = orderFlowId;
    }

    public Integer getMatId() {
        return matId;
    }

    public void setMatId(Integer matId) {
        this.matId = matId;
    }

    public Integer getReduceTypeId() {
        return reduceTypeId;
    }

    public void setReduceTypeId(Integer reduceTypeId) {
        this.reduceTypeId = reduceTypeId;
    }

    public Integer getReduceNum() {
        return reduceNum;
    }

    public void setReduceNum(Integer reduceNum) {
        this.reduceNum = reduceNum;
    }

    public Integer getKeyMaterial() {
        return keyMaterial;
    }

    public void setKeyMaterial(Integer keyMaterial) {
        this.keyMaterial = keyMaterial;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getMatCode() {
        return matCode;
    }

    public void setMatCode(String matCode) {
        this.matCode = matCode;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public String getReduceTypeName() {
        return reduceTypeName;
    }

    public void setReduceTypeName(String reduceTypeName) {
        this.reduceTypeName = reduceTypeName;
    }

    public Integer getMatTypeId() {
        return matTypeId;
    }

    public void setMatTypeId(Integer matTypeId) {
        this.matTypeId = matTypeId;
    }

    public String getMatTypeCode() {
        return matTypeCode;
    }

    public void setMatTypeCode(String matTypeCode) {
        this.matTypeCode = matTypeCode;
    }

    public String getMatTypeName() {
        return matTypeName;
    }

    public void setMatTypeName(String matTypeName) {
        this.matTypeName = matTypeName;
    }

    public Integer getRuleId() {
        return ruleId;
    }

    public void setRuleId(Integer ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getMatSourceName() {
        return matSourceName;
    }

    public void setMatSourceName(String matSourceName) {
        this.matSourceName = matSourceName;
    }

    public String getMatUnitName() {
        return matUnitName;
    }

    public void setMatUnitName(String matUnitName) {
        this.matUnitName = matUnitName;
    }

    public String getMatModel() {
        return matModel;
    }

    public void setMatModel(String matModel) {
        this.matModel = matModel;
    }
}